<template>
  <div class="errPage-container">
    <el-row>
      <el-col :span="12">
        <h1 class="text-jumbo text-ginormous">系统错误!</h1>
        <h2>初始化配置失败</h2>
        <h6>对不起，加载系统初始化配置失败！请点击重试！</h6>
        <ul class="list-unstyled">
          <li class="link-type">
            <el-link @click="back" :underline="false" type="primary"> 重试 </el-link>
          </li>
        </ul>
      </el-col>
      <el-col :span="12">
        <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream." />
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
  import errGif from '@/assets/401_images/401.gif'
  const msg = ref('')
  const route = useRoute()
  const router = useRouter()
  onMounted(() => {
    msg.value = route.query?.msg || '您没有访问权限！'
  })

  function back() {
    router.push({ name: 'Index', replace: true })
  }
</script>

<style lang="scss" scoped>
  .errPage-container {
    width: 800px;
    max-width: 100%;
    margin: 100px auto;
    .pan-back-btn {
      background: #008489;
      color: #fff;
      border: none !important;
    }
    .pan-gif {
      margin: 0 auto;
      display: block;
    }
    .pan-img {
      display: block;
      margin: 0 auto;
      width: 100%;
    }
    .text-jumbo {
      font-size: 60px;
      font-weight: 700;
      color: #484848;
    }
    .list-unstyled {
      font-size: 14px;
      li {
        padding-bottom: 5px;
      }
      a {
        color: #008489;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
</style>
